﻿using BCCommon;
using BCDto.Sim.Admin.Admin;
using BCDto.Sim.CompanyBusinessType;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.Sim.Company.CompanyBusinessType
{
    /// <summary>
    /// 公司业务类型
    /// </summary>
	public interface ICompanyBusinessTypeService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="companyBusinessTypeId">公司业务类型Id</param>
        bool Exists(int companyBusinessTypeId);
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="companyBusinessTypeCode">公司业务类型编号</param>
        bool Exists(string companyBusinessTypeCode);
        /// <summary>
        /// 添加公司业务类型
        /// </summary>
        /// <param name="requestDto">公司业务类型信息</param>
        CompanyBusinessTypeDto Add(CompanyBusinessTypeRequestDto requestDto);
        /// <summary>
        /// 更新公司业务类型
        /// </summary>
        /// <param name="putDto">公司业务类型信息</param>
        CompanyBusinessTypeDto Update(CompanyBusinessTypePutDto putDto);
        /// <summary>
        /// 删除公司业务类型
        /// </summary>
        /// <param name="companyBusinessTypeId">公司业务类型Id</param>
        bool Delete(int companyBusinessTypeId);
        /// <summary>
        /// 获取公司业务类型
        /// </summary>
        /// <param name="companyBusinessTypeId">公司业务类型Id</param>
        CompanyBusinessTypeDto GetEntity(int companyBusinessTypeId);
        /// <summary>
        /// 获取公司业务类型列表
        /// </summary>
        IEnumerable<CompanyBusinessTypeDto> GetList();
        /// <summary>
        /// 获取公司业务类型分页列表
        /// </summary>
        /// <param name="companyBusinessTypeName">公司业务类型名称</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">公司业务类型每页数据条数</param>
        PageableList<CompanyBusinessTypeDto> Query(string companyBusinessTypeName, DateTime? start, DateTime? end, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}
